#include <REGX52.H>
#include <INTRINS.H>
void Delay500ms()		//@12.000MHz
{
	unsigned char i, j;
	int ms;
	ms=50;
for(ms;ms>0;ms--){
	i = 12;
	j = 169;
	do
	{
		while (--j);
	} while (--i);
}
}
unsigned int i;
void main(){
	P2=0xfe;
	while(1){
			Delay500ms();	
			P2=_crol_(P2,1);
	}
}